export default {
    namespaced: true,
    state: {
        user_info: {
            nickname: "",
            isAdmin: false,
            id: '',
            img_url: ''
        }

    },
    mutations: {
        set_info(state, param) {
            state.user_info = param
            param.img_url ? null:  state.user_info.img_url = '/default_img.jpg'       
        }
    }
}